package com.ruoyi.com.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseDomain;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 机构和功能关联对象 com_dept_function
 *
 * @author sunye
 * @date 2024-09-27
 */
@Data
public class ComDeptFunction
{
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID")
    @TableId(value ="id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "机构ID")
    @Excel(name = "机构ID")
    private Long deptId;

    @ApiModelProperty(value = "功能表ID")
    @Excel(name = "功能表ID")
    private Long functionId;

    //type=1 小程序 2web 3公众号 4大屏幕 5后端
    private String type;



    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("deptId", getDeptId())
            .append("functionId", getFunctionId())
            .toString();
    }
}
